using System;
using System.Collections.Generic;
using System.Text;
using Danser_Entity.Entities;

namespace Danser_Control.Managers
{
    /// <summary>
    /// Handle all dat processing of the tests to insert to data base
    /// </summary>
    public interface IDataManager
    {
        /// <summary>
        /// Generic method to change boolean field in the test (isAnchor or isConfirmed)
        /// </summary>
        /// <param name="testinfoIndex"></param>
        /// <param name="field"></param>
        /// <param name="value"></param>
        void UpdateState(String testinfoIndex, string field, bool value);

        /// <summary>
        /// Uploads the files in specified tmp directory. after this operation, files will be removed from directory
        /// </summary>
        /// <param name="fileNames">file paths to the files to upload</param>
        /// <param name="templateIDs">Validtaion templates to activate on the files</param>
        /// <returns>List of validation results correlated to the list of files sent</returns>
        IList<ValidationResult> UploadInput(IList<string> fileNames, IList<int> templateIDs);

    }
}
